Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix incorrect handling of contract_address as an array #483

Closed
wants to merge 1 commit into from

Conversation

brawncode
Copy link

Pull Request type

  • Refactoring (no functional changes, no API changes)

What is the current behavior?

I noticed that contract_address was being treated as an array in the code, which caused an issue when trying to access contract_address[0].

Since contract_address is actually a string, I've updated the code to correctly check its truthiness.

The fix ensures the test works as intended.

expect(deployResult.contract_address).toBeTruthy();

This change resolves the issue and aligns with the expected data type.

Does this introduce a breaking change?

no

Other information

@Trantorian1
Copy link
Collaborator

Hello! Please understand we are hesitant in merging a one-liner from an unknown contributor. You can have a look at the issues for a list of know bugs which need fixing. For anything else, we would prefer if you could open an issue first before proposing a fix.

@Trantorian1 Trantorian1 closed this Feb 6, 2025
@madara-alliance madara-alliance locked and limited conversation to collaborators Feb 6, 2025
@brawncode brawncode deleted the patch-1 branch February 6, 2025 08:11
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants